@import "~common/css/_variables.scss";

.newest {
  // 类型选择

  .type {
    margin: 10px auto 0;
    display: table;

    ul {
      display: flex;
      overflow: hidden;
      font-size: $fz12;
      border: 1px solid #BBBBBB;
      background-color: #fff;
      border-radius: 15px;

      li {
        width: 110px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        cursor: pointer;
        color: $c666;
        border-radius: 15px;

        &:hover {
          background-color: #F4F4F4;
        }

        &.active {
          color: $cfff;
          background-color: #BBBBBB;

          &:hover {
            background-color: #BBBBBB;
          }
        }
      }
    }
  }
}

// 二级菜单栏
.newest_menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-bottom: 1px solid #e5e6ea;

  ul {
    display: flex;
    align-items: center;

    li {
      position: relative;
      line-height: 40px;
      cursor: pointer;

      &:not(:first-child) {
        margin-left: 30px;
      }

      &.active {
        color: $color;

        &::before {
          position: absolute;
          content: "";
          bottom: 0;
          left: 0;
          width: 100%;
          height: 2px;
          background-color: $color;
        }
      }
    }
  }

  div {
    span {
      padding: 0 10px;
      cursor: pointer;

      &:last-child {
        padding-right: 0;
      }

      &:not(:last-child) {
        border-right: 1px solid #e5e6ea;
      }
    }
  }
}

// 新歌速递
.top_song {
  margin: 10px 0;

  ul {
    li {
      display: flex;
      align-items: center;
      height: 60px;
      padding: 10px 24px 10px 12px;
      line-height: 40px;
      border-left: 1px solid #e5e6ea;
      border-right: 1px solid #e5e6ea;

      &:first-child {
        border-top: 1px solid #e5e6ea;
      }

      &:last-child {
        border-bottom: 1px solid #e5e6ea;
      }

      &:nth-child(odd) {
        background-color: #f5f5f7;
      }

      &:nth-child(even) {
        background-color: #fff;
      }

      &:hover {
        background-color: #e3e3e5;
      }

      p {
        cursor: default;

        &:nth-child(1) {
          width: 40px;
        }

        &:nth-child(2) {
          width: 40px;
          height: 40px;
        }

        &:nth-child(3) {
          width: calc(40% - 60px);
          padding-left: 10px;
        }

        &:nth-child(4) {
          width: calc(30% - 40px);
          padding-left: 10px;
        }

        &:nth-child(5) {
          width: calc(30% - 40px);
          padding-left: 10px;
        }

        &:nth-child(6) {
          width: 60px;
          text-align: right;
        }
      }
    }
  }
}